{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "9c159842",
   "metadata": {},
   "source": [
    "### 购物车程序项目\n",
    "要求：1、运行程序后，让用户输入支付宝余额，然后打印我们的商品列表给用户。\n",
    "\n",
    "　　   2、让用户输入商品编号进行商品的购买。\n",
    "\n",
    "　　   3、用户选择商品后，检查用户的余额是否够，若够则直接扣款，不够则提醒用户。\n",
    "\n",
    "　　   4、用户可以随时退出购买，推出时打印用户已购买的商品和支付宝余额。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "c1d5eea2",
   "metadata": {},
   "outputs": [],
   "source": [
    "product_list = [\n",
    "    [\"自行车\",299],\n",
    "    [\"iphone 13 pro\", 9999],\n",
    "    [\"NFT盲盒\",28],\n",
    "    [\"许老师的python书\", 60]\n",
    "]\n",
    "\n",
    "shopping_car = []\n",
    "\n",
    "Alipay = input(\"请输入商品编号：\")\n",
    "print()\n",
    "\n",
    "#情景1：用户输入了商品编号\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
